<template>
	<view class="home">
		<web-view :src="url"></web-view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				url:'',
				urls:'',
			}
		},
	
		onShow() {
		
		},
		onLoad(e) {
			console.log(e);
			if(e.type==1){
				this.url='https://web.kjrongsheng.com/shouquan.html?url='+e.url+'&id='+e.id+'&st='+e.st+'&token='+e.token+'&openid='+e.openid+'&type='+e.type;
			}else if(e.type==2){
				this.url='https://web.kjrongsheng.com/shouquan.html?url='+e.url+'&id='+e.id+'&st='+e.st+'&token='+e.token+'&openid='+e.openid+'&type='+e.type;
			}else if(e.type==4){
				this.url=e.url+'?id='+e.id+'&sn='+e.sn+'&type=4';
			}else{
				this.url=this.url=e.url+'?id='+e.id+'&st='+e.st+'&token='+e.token+'&openid='+e.openid;
			}
			console.log(this.url);
		},
	
		mounted(e) {
			
		},
		onReachBottom() {
			console.log('99')
		},
		methods: {
			    
		}
	}
</script>

<style lang="scss" scoped>

</style>
